<el-form ref="form" :model="form" :rules="rules" label-width="120px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="邮件类型" prop="MAIL_TYPE">
                <el-select v-model="form.MAIL_TYPE" clearable>
                    <el-option v-for="item in selectOptions.mailType" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="邮件服务器" prop="MAIL_SMTP">
                <el-input v-model="form.MAIL_SMTP"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="端口" prop="MAIL_PORT">
                <el-input v-model="form.MAIL_PORT" ></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="发件邮箱账号" prop="MAIL_EMAIL">
                <el-input v-model="form.MAIL_EMAIL" ></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="发件邮箱密码" prop="PASSWORD">
                <el-input v-model="form.PASSWORD"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="是否启用" prop="MAILUD001">
                <el-select v-model="form.MAILUD001">
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/system/mail_edit"], $.noop);
</script>